/* 
 *  Copyright 2012 CodeMagi, Inc.
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.codemagi.servlets;

import java.util.HashMap;

public class InputAttributes {

    /**
     * Private constructor - this class is not meant to be initialized
     */
    private InputAttributes() {
        //nada
    }

    public static final HashMap DOUBLE_SELECT_LEFT_ATTRIBUTES = new HashMap(2);
    static {
	DOUBLE_SELECT_LEFT_ATTRIBUTES.put("style", "width:150px;background-color:#efefef;");
	DOUBLE_SELECT_LEFT_ATTRIBUTES.put("size", "7");
    }

    public static final HashMap DOUBLE_SELECT_RIGHT_ATTRIBUTES = new HashMap(2);
    static {
	DOUBLE_SELECT_RIGHT_ATTRIBUTES.put("style", "width:150px;background-color:#ffffff;");
	DOUBLE_SELECT_RIGHT_ATTRIBUTES.put("size", "7");
    }

    public static final HashMap NOTES_ATTRIBUTES = new HashMap();
    static {
	NOTES_ATTRIBUTES.put("style", "width:370px;height:70px;");
    }

    public static final HashMap FILE_ATTRIBUTES = new HashMap();
    static {
        FILE_ATTRIBUTES.put("style", "width:300px;");
        FILE_ATTRIBUTES.put("size", "30");
    }

    public static final HashMap LOGIN_TEXT_ATTRIBUTES = new HashMap(2);
    static {
        LOGIN_TEXT_ATTRIBUTES.put("style", "padding:0px;margin:0px;height:14px;width:60px;font-size:9px;");
        LOGIN_TEXT_ATTRIBUTES.put("size", "10");
    }


    public static final HashMap TEXT_ATTRIBUTES = new HashMap(2);
    static {
        TEXT_ATTRIBUTES.put("style", "width:300px;");
        TEXT_ATTRIBUTES.put("size", "30");
    }

    public static final HashMap SMALL_TEXT_ATTRIBUTES = new HashMap(1);
    static {
        SMALL_TEXT_ATTRIBUTES.put("size", "25");
    }

    public static final HashMap NUMBER_TEXT_ATTRIBUTES = new HashMap(1);
    static {
        NUMBER_TEXT_ATTRIBUTES.put("size", "5");
    }

    public static final HashMap TEXT_AREA_ATTRIBUTES = new HashMap(3);
    static {
        TEXT_AREA_ATTRIBUTES.put("cols", "50");
        TEXT_AREA_ATTRIBUTES.put("rows", "4");
        TEXT_AREA_ATTRIBUTES.put("wrap", "virtual");
    }

    public static final HashMap LARGE_TEXT_AREA_ATTRIBUTES = new HashMap(3);
    static {
        LARGE_TEXT_AREA_ATTRIBUTES.put("cols", "60");
        LARGE_TEXT_AREA_ATTRIBUTES.put("rows", "8");
        LARGE_TEXT_AREA_ATTRIBUTES.put("wrap", "virtual");
    }

    public static final HashMap SMALL_TEXT_AREA_ATTRIBUTES = new HashMap(4);
    static {
        SMALL_TEXT_AREA_ATTRIBUTES.put("style", "width:300px;");
        SMALL_TEXT_AREA_ATTRIBUTES.put("cols", "30");
        SMALL_TEXT_AREA_ATTRIBUTES.put("rows", "2");
        SMALL_TEXT_AREA_ATTRIBUTES.put("wrap", "virtual");
    }

    public static final HashMap SMALL_SELECT_ATTRIBUTES = new HashMap(1);
    static {
        SMALL_SELECT_ATTRIBUTES.put("style", "font-size:small;");
    }

    public static final HashMap MULTI_SELECT_ATTRIBUTES = new HashMap(2);
    static {
        MULTI_SELECT_ATTRIBUTES.put("size", "5");
        MULTI_SELECT_ATTRIBUTES.put("style", "width:300px;");
    }

    public static final HashMap SELECT_ATTRIBUTES = new HashMap(1);
    static {
	SELECT_ATTRIBUTES.put("style", "width:300px;");
    }

    public static final HashMap CHECKBOX_ATTRIBUTES = new HashMap(1);
    static {
        CHECKBOX_ATTRIBUTES.put("style", "background-color:FFFFFF; width:13px; height:13px");
    }

    public static final HashMap BLUE_SUBMIT_ATTRIBUTES = new HashMap(4);
    static {
        BLUE_SUBMIT_ATTRIBUTES.put("border", "0");
        BLUE_SUBMIT_ATTRIBUTES.put("class", "buttonblue");
        BLUE_SUBMIT_ATTRIBUTES.put("OnMouseOver", "this.style.color='#fbe249';");
        BLUE_SUBMIT_ATTRIBUTES.put("OnMouseOut", "this.style.color='#FFF';");
    }

    public static final HashMap ORANGE_SUBMIT_ATTRIBUTES = new HashMap(4);
    static {
        ORANGE_SUBMIT_ATTRIBUTES.put("border", "0");
        ORANGE_SUBMIT_ATTRIBUTES.put("class", "buttonorange");
        ORANGE_SUBMIT_ATTRIBUTES.put("OnMouseOver", "this.style.color='#FEC726';");
        ORANGE_SUBMIT_ATTRIBUTES.put("OnMouseOut", "this.style.color='#FFFFFF';");
    }

    public static final HashMap WHITE_SUBMIT_ATTRIBUTES = new HashMap(5);
    static {
        WHITE_SUBMIT_ATTRIBUTES.put("border", "0");
        WHITE_SUBMIT_ATTRIBUTES.put("class", "buttonblue");
        WHITE_SUBMIT_ATTRIBUTES.put("style", "background:#ffffff;color:#594fbf;");
        WHITE_SUBMIT_ATTRIBUTES.put("OnMouseOver", "this.style.color='#594fbf';this.style.background='#e4e9ff';");
        WHITE_SUBMIT_ATTRIBUTES.put("OnMouseOut", "this.style.color='#594fbf';this.style.background='#ffffff';");
    }

    public static final HashMap RED_SUBMIT_ATTRIBUTES = new HashMap(4);
    static {
        RED_SUBMIT_ATTRIBUTES.put("border", "0");
        RED_SUBMIT_ATTRIBUTES.put("class", "buttonred");
        RED_SUBMIT_ATTRIBUTES.put("OnMouseOver", "this.style.color='#fbe249';");
        RED_SUBMIT_ATTRIBUTES.put("OnMouseOut", "this.style.color='#FFF';");
    }    

}
